package org.paul.gotobplan.ui;

import android.support.v7.widget.Toolbar;
import android.view.Menu;
import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;
import org.paul.gotobplan.BaseAct;
import org.paul.gotobplan.R;

@EActivity(R.layout.act_profile)
public class ProfileAct extends BaseAct {
    @Override
    public boolean onPrepareOptionsMenu(Menu menu) {
        return super.onPrepareOptionsMenu(menu);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.profile, menu);
        return super.onCreateOptionsMenu(menu);
    }

    @ViewById
    Toolbar toolbar;

    @AfterViews
    void afterViews() {
        setSupportActionBar(toolbar);
        toolbar.setNavigationOnClickListener(backPressedListener);
    }
}
